<template>
  <div id="app">
    <ul-li :list="list"></ul-li>
  </div>
</template>

<script>
import ulLi from './components/ulli'

export default {
  name:"App",
  components: {
    ulLi
  },
  data(){
    return {
      list:[]
    }
  },
  created(){
    this.$http.get('/api/list').then((res) => {
      if(res.data.code == 0){
        this.list = res.data.data
      }
    })
  }
}
</script>

<style>
html,body,#app{
  width: 100%;
  height: 100%;
}
</style>
